<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BApplicationConfig
 *
 * @author ID59C
 */
class BApplicationConfig extends BConfig {

    public $configPath = 'application.application.config';
    private $paths = null;

    //put your code here
    public function init() {
        parent::init();
        $this->initPathAndImport();
    }

    public function parseConfig() {
        parent::parseConfig();
    }

    protected function initPathAndImport() {
        $basePath = 'application.application';

        $paths = $this->paths = array(
            'basePath' => $basePath,
            'authPath' => $basePath . '.auth',
            'dbPath' => $basePath . '.db',
            'uiPath' => $basePath . '.ui',
            'configPath' => $basePath . '.config',
            'dataPath' => $basePath . '.data',
            'appPath' => $basePath . '.app',
            'operationContractPath' => $basePath . '.operationContract',
        );

        foreach ($paths as $name => $value) {
            $this->parent->setComponentProperty($name, $value);
        }

        yii::import($paths['basePath'] . '.*');
        yii::import($paths['appPath'] . '.*');
        yii::import($paths['uiPath'] . '.*');
        yii::import($paths['authPath'] . '.*');
        yii::import($paths['dataPath'] . '.*');
        yii::import($paths['dbPath'] . '.*');
        yii::import($paths['operationContractPath'] . '.*');
    }
    
    public function initAppUiConfig()
    {
        
    }

}

?>
